<?php

/*
 * Niken Larasati
 * larasati.n@students.amikom.ac.id
 */

class kematian_c extends CI_Controller {

    public function __construct() {
        parent::__construct();
    }

    function formkematian() {
        $this->template->load('halaman', 'formkematian');
    }

    function simpan(){
        if($this->input->post('simpan') !=NULL)
        {
            $data['id_mati'] = $this->input->post('id_mati');
            $data['nik'] = $this->input->post('nokk');
          //  $data['anak_ke'] = $this->input->post(''); >> kelahiran ke?
            $data['tgl_mati'] = $this->input->post('tgl_mati');
            $data['sebab_mati'] = $this->input->post('sbb_mati');
            $data['tmpt_mati'] = $this->input->post('tmp_mati');
            $data['penerang'] = $this->input->post('penerang');
            $data['nik_ibu'] = $this->input->post('nik_ibu');
            $data['nik_ayah'] = $this->input->post('nik_ayah');
            $data['nik_saksi'] = $this->input->post('nik_saksi');
            $data['nik_pelapor'] = $this->input->post('nik_lapor');
            $data['hub_pelapor'] = $this->input->post('hub_pelapor');
        }
    }
}

?>
